package com.bolt.auth.security.common.exception;

import com.bolt.convention.data.code.ServiceCode;

/**
 * Created by Administrator on 2019/9/3.
 */
public class InvalidException extends Auth2Exception {

    public InvalidException(ServiceCode respCode, Throwable cause) {
        super(respCode, cause);
    }

    public InvalidException(String msg, Throwable t) {
        super(msg, t);
    }

    @Override
    public String getOAuth2ErrorCode() {
        return "invalid_exception";
    }

    @Override
    public int getHttpErrorCode() {
        return 426;
    }
}

 